<template>
	<view class="success-page">
		<view class="content">
			<!-- 成功图标 -->
			<view class="icon-box">
				<image src="/static/success-icon.png" mode="aspectFit"></image>
			</view>

			<!-- 成功文字 -->
			<view class="text">添加成功</view>

			<!-- 返回按钮 -->
			<view class="btn-box">
				<button class="back-btn" type="primary" @click="handleBack">返回</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			handleBack() {
				uni.navigateTo({
					url: '/pages/kk/chexing/chexing'
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.success-page {
		min-height: 100vh;
		background-color: #FFFFFF;
		padding: 30rpx;

		.content {
			margin-top: 200rpx;
			display: flex;
			flex-direction: column;
			align-items: center;

			.icon-box {
				width: 160rpx;
				height: 160rpx;
				margin-bottom: 40rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.text {
				font-size: 36rpx;
				color: #333333;
				margin-bottom: 80rpx;
			}

			.btn-box {
				width: 100%;
				padding: 0 40rpx;

				.back-btn {
					width: 100%;
					height: 88rpx;
					line-height: 88rpx;
					background-color: #2E80FA;
					color: #FFFFFF;
					border-radius: 44rpx;
					font-size: 32rpx;

					&:active {
						opacity: 0.8;
					}
				}
			}
		}
	}
</style>